package org.jeecg.modules.wlhy.customer.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Future;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @Description: hy_customer货主
 * @Author: jeecg-boot
 * @Date:   2020-11-30
 * @Version: V1.0
 */
@Data
@TableName("hy_customer")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="hy_customer对象", description="hy_customer")
public class HyCustomer implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**客户类型 (customer_type  1个人 2 公司)*/
	@Excel(name = "客户类型 (customer_type  1个人 2 公司)", width = 15, dicCode = "customer_type")
	@Dict(dicCode = "customer_type")
    @ApiModelProperty(value = "客户类型 (customer_type  1个人 2 公司)")
    @Max(2)
    @Min(1)
    private String customerType;
	/**客户来源 (customer_channel  1平台 2 APP)*/
	@Excel(name = "客户来源 (customer_channel  1平台 2 APP)", width = 15, dicCode = "customer_channel")
	@Dict(dicCode = "customer_channel")
    @ApiModelProperty(value = "客户来源 (customer_channel  1平台 2 APP)")
    private String customerChannel;

	/**客户名称*/
	@Excel(name = "客户名称", width = 15)
    @ApiModelProperty(value = "客户名称")
    private String customerName;

    @Excel(name = "客户简称", width = 15)
    @ApiModelProperty(value = "客户简称")
    private String customerShoreName;
	/**企业法人姓名*/
	@Excel(name = "企业法人姓名", width = 15)
    @ApiModelProperty(value = "企业法人姓名")
    private String legalName;
	/**法人手机号*/
	@Excel(name = "法人手机号", width = 15)
    @ApiModelProperty(value = "法人手机号")
    private String legalPhone;
	/**统一社会信用代码*/
	@Excel(name = "统一社会信用代码", width = 15)
    @ApiModelProperty(value = "统一社会信用代码")
    private String creditCode;
	/**营业执照有效期*/
	@Excel(name = "营业执照有效期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "营业执照有效期")
    private Date businessLicenseExpiredDate;
	/**营业执照照片*/
	@Excel(name = "营业执照照片", width = 15)
    @ApiModelProperty(value = "营业执照照片")
    private String businessLicenseImg;
	/**营业执照副本*/
	@Excel(name = "营业执照副本", width = 15)
    @ApiModelProperty(value = "营业执照副本")
    private String businessLicenseImg2;

    /**法人身份证正面照片*/
    @Excel(name = "法人身份证正面照片", width = 15)
    @ApiModelProperty(value = "法人身份证正面照片")
    private String legalIdcardImg;
    /**法人身份证反面照片*/
    @Excel(name = "法人身份证反面照片", width = 15)
    @ApiModelProperty(value = "法人身份证反面照片")
    private String legalIdcardBackImg;


	/**省代码*/
	@Excel(name = "省代码", width = 15)
    @ApiModelProperty(value = "省代码")
    private String provinceCode;

	/**市代码*/
	@Excel(name = "市代码", width = 15)
    @ApiModelProperty(value = "市代码")
    private String cityCode;
	/**县代码*/
	@Excel(name = "县代码", width = 15)
    @ApiModelProperty(value = "县代码")
    @NotEmpty(message = "县代码不允许为空")
    private String countyCode;
	/**详细地址*/
	@Excel(name = "详细地址", width = 15)
    @ApiModelProperty(value = "详细地址")
    //@NotEmpty(message = "详细地址不允许为空")
    private String detailAddress;
	/**联系人*/
	@Excel(name = "联系人", width = 15)
    @ApiModelProperty(value = "联系人")
    @NotEmpty(message = "联系人不允许为空")
    private String contactName;
	/**登陆手机号*/
	@Excel(name = "登陆手机号", width = 15)
    @ApiModelProperty(value = "登陆手机号")
    @NotEmpty(message = "登陆手机号不允许为空")
    private String loginPhone;
	/**身份证号*/
	@Excel(name = "身份证号", width = 15)
    @ApiModelProperty(value = "身份证号")
    @NotEmpty(message = "身份证号不允许为空")
    private String idcard;
	/**身份证正面照片*/
	@Excel(name = "身份证正面照片", width = 15)
    @ApiModelProperty(value = "身份证正面照片")
    @NotEmpty(message = "身份证正面照片不允许为空")
    private String idcardImg;
	/**身份证反面照片*/
	@Excel(name = "身份证反面照片", width = 15)
    @ApiModelProperty(value = "身份证反面照片")
    @NotEmpty(message = "身份证反面面照片不允许为空")
    private String idcardBackImg;
	/**身份证过期时间*/
	@Excel(name = "身份证过期时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "身份证过期时间")
    @Future
    @NotNull
    private Date idcardExpiredDate;

//    @ApiModelProperty(value = "合作协议")
//    private String cooperAgreement;

    /**主管税务机关*/
    @Excel(name = "主管税主管税务机关务机关", width = 15)
    @ApiModelProperty(value = "主管税务机关")
    //@NotEmpty(message = "主管税务机关不允许为空")
    private String competentTaxAuthority;


	/**是否启动(1表示是 0表示否)*/
//	@Excel(name = "是否启用(1表示是 0表示否)", width = 15)
    @ApiModelProperty(value = "是否启用(1表示是 0表示否)")
    private String izUsed;
	/**审核状态(0待审核 1审核通过 2审核失败)*/
//	@Excel(name = "审核状态(0待审核 1审核通过 2审核失败)", width = 15, dicCode = "examine_status")
	@Dict(dicCode = "examine_status")
    @ApiModelProperty(value = "审核状态(0待审核 1审核通过 2审核失败)")
    private String examineStatus;
	/**examineDate*/
//	@Excel(name = "examineDate", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "examineDate")
    private Date examineDate;
	/**examineRemark*/
//	@Excel(name = "examineRemark", width = 15)
    @ApiModelProperty(value = "examineRemark")
    private String examineRemark;
	/**用户id*/
	@Excel(name = "用户id", width = 15)
    @ApiModelProperty(value = "用户id")
    private String userId;

    /**部门id*/
//    @Excel(name = "部门id", width = 15)
    @ApiModelProperty(value = "部门id")
    private String orgId;

	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;

    @ApiModelProperty(value = "删除状态(0-正常,1-已删除)")
    @TableLogic
    private String delFlag;

    /**注册资本*/
    @Excel(name = "注册资本", width = 15)
    @ApiModelProperty(value = "注册资本")
    private java.lang.String zczb;
    /**经营范围*/
    @Excel(name = "经营范围", width = 15)
    @ApiModelProperty(value = "经营范围")
    private java.lang.String jyfw;
    /**成立日期*/
    @Excel(name = "成立日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "成立日期")
    private java.util.Date clrq;


    /**天津税务上报状态(0未上传 1上传成功 2上传失败)*/
//    @Excel(name = "天津税务上报状态(0未上传 1上传成功 2上传失败)", width = 15, dicCode = "upload_status")
    @Dict(dicCode = "upload_status")
    @ApiModelProperty(value = "天津税务上报状态(0未上传 1上传成功 2上传失败)")
    private java.lang.String tjTaxUploadStatus;
    /**天津税务上报时间*/
    @Excel(name = "天津税务上报时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "天津税务上报时间")
    private java.util.Date tjTaxUploadTime;

    /**快货运上报状态(0未上传 1上传成功 2上传失败)*/
//    @Excel(name = "快货运上报状态(0未上传 1上传成功 2上传失败)", width = 15, dicCode = "upload_status")
    @Dict(dicCode = "upload_status")
    @ApiModelProperty(value = "快货运上报状态(0未上传 1上传成功 2上传失败)")
    private java.lang.String tosUploadStatus;
    /**快货运上报时间*/
//    @Excel(name = "快货运上报时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "快货运上报时间")
    private java.util.Date tosUploadTime;

    @Excel(name = "道路运输证号", width = 15)
    @ApiModelProperty(value = "道路运输证号")
    private java.lang.String roadTransportNumber;

    @ApiModelProperty(value = "发布方UUID")
    private java.lang.String fbfuuid;

    @ApiModelProperty(value = "电子签章")
    private java.lang.String signaturesPath;
}
